<h3>Titles</h3>
<% if titles && titles.size > 0 %>
<table>
	<% for title in titles
	%>
	<tr id="<%= dom_id(title) %>">
		<td>
			<%= title.name %>
		</td>
		<% if is_admin? %>
			<% if !(title.priest? or title.lord?) %>
			<td>
				<%= link_to_remote 'delete', 
				      :url => title_url(title), 
				      :confirm => 'Are you sure?', 
				      :method => :delete %>
			</td>
			<% end %>
		<% end %>
		<% if is_vassal? (character) && title.revokeable?%>
		<td>
			<%= link_to 'revoke', title, 
			      :confirm => 'Are you sure?', 
			      :method => :delete %>
		</td>
		<% end %>
	</tr>
	<% end -%>
</table>
<% else %>
<p>None</p>
<% end %>
